package com.dev.ac.web.client;

import com.dev.ac.common.Result;
import com.dev.ac.service.AUserService;
import com.dev.ac.util.RedisUtil;
import com.dev.ac.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 付
 * @Date 2024-04-14 18:44
 * @Version 1.0
 * @description
 * @since 1.0
 */
@RestController
@RequestMapping("/user")
public class UserLoginController {
    @Autowired
    AUserService aUserService;
    @Autowired
    RedisUtil redisUtil;

    /***学生登录**/
    @PostMapping("/login")
    public Result StudentUser(@Validated @RequestBody LoginVo loginVo)
    {
        Object login = aUserService.login(loginVo);
        return Result.success(login);
    }

}
